package com.music.utils;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;

//������
public class Helper {

	 //֪ͨ
    public void showNotification(NotificationManager notificationManager,int icon,String message,Context from, Class<?> cls)
    {
    	Notification notification=new Notification(icon,message,System.currentTimeMillis());
    	PendingIntent contentIntent = PendingIntent.getActivity(from, 0,new Intent(from, cls), 0);
    	notification.setLatestEventInfo(from, message,null, contentIntent);
    	notification.defaults=Notification.DEFAULT_LIGHTS;

		notificationManager.notify(19172438, notification);
		notificationManager.cancel(19172438);
    }
}
